package com.cj.user.service.designpatterns.factory;

/**
 * @Author cheng jun
 * @Description:
 * @Date 2021/7/14 18:52
 */
public enum SimpleFactory2 {

    INSTANCE;

    public Apple createApple() {
        return new Apple();
    }

    public Banana createBanana() {
        return new Banana();
    }
}
